package com.soul.annotation;

import com.soul.enums.RequestMethod;
import com.soul.interceptor.Interceptor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 请求接口标记
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface HTTPRequest {
    
    String url();
    
    RequestMethod method() default RequestMethod.GET;
    
    boolean enableHttps() default false;
    
}
